import {createStore, applyMiddleware, combineReducers} from 'redux';
import thunk from 'redux-thunk';
import {composeWithDevTools} from 'redux-devtools-extension';
import totalReducer from './total_reducer.js';

const reducers = combineReducers(totalReducer);

const store = createStore(
    reducers,
    composeWithDevTools(
        applyMiddleware(thunk)
    )
);
export default store;